package javajs;

public class MyStringTest {
    public static void main(String[] args) {
        String i ="hello java";
        String j ="hello java";

        //    equals两个字符串相等
        if (i.equals(j)) {

            String a = i.replace(" java","world");
            String b = j.replace(" java","world");

            System.out.println(a);
            System.out.println(b);


        }
    }
}
